package config

import (
	"fmt"
	"github.com/spf13/viper"
)

func InitConfig(address string) {
	viper.SetConfigFile(address)
	err := viper.ReadInConfig()
	if err != nil {
		panic("获取配置文件失败")
	}
	fmt.Println("yaml配置获取成功：：：")
}
